﻿Imports DAO
Imports DTO
Imports System.Data.Linq

Public Class PhieuMuonBus
    Public Shared Function LayBang() As Table(Of PhieuMuonSach)
        Return PhieuMuonDao.LayBang()
    End Function

    Public Shared Function LayDanhSach() As IEnumerable(Of PhieuMuonSach)
        Dim lst As IEnumerable(Of PhieuMuonSach)
        lst = PhieuMuonDao.LayDanhSach()
        Return lst
    End Function

    Public Shared Function LayPhieuMuon(ByVal mt As Integer) As PhieuMuonSach
        Return PhieuMuonDao.LayPhieuMuon(mt)
    End Function

    Public Shared Sub Them(ByVal t As PhieuMuonSach)
        PhieuMuonDao.Them(t)
    End Sub

    Public Shared Sub ThemChiTiet(ByVal m As PhieuMuonSach, ByVal t As ChiTietMuonTra)
        PhieuMuonDao.ThemChiTiet(m, t)
    End Sub
End Class
